<?php
/**
 * @author 刘国君
 * @version 1.0
 */
namespace app;

use app\utils\Common;
use app\utils\Config;
use Workerman\Connection\UdpConnection;

class SipEvents{
    protected static function recordLog($message){
        $debug=Config::get('debug',false);
        if($debug){
            Common::writeLog($message);
        }
    }
    //不用应该改的.
    public static function onMessage(UdpConnection $connection,$message){
        //记录
//        self::recordLog($message);

        //处理-->需要自己实现
        var_dump($message);
        var_dump($_SERVER);

    }

    protected function decode(){

    }
}
